package clothes.tools.pojo;

import java.math.BigDecimal;

public class Commodity {
    private String pid;
    private String pname;
    private String pcolor;
    private  String psize;
    private BigDecimal price;
    private Integer pnum;
    private String img_path;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPcolor() {
        return pcolor;
    }

    public void setPcolor(String pcolor) {
        this.pcolor = pcolor;
    }

    public String getPsize() {
        return psize;
    }

    public void setPsize(String psize) {
        this.psize = psize;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getPnum() {
        return pnum;
    }

    public void setPnum(Integer pnum) {
        this.pnum = pnum;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public Commodity() {
    }

    public Commodity(String pid, String pname, String pcolor, String psize, BigDecimal price, Integer pnum, String img_path) {
        this.pid = pid;
        this.pname = pname;
        this.pcolor = pcolor;
        this.psize = psize;
        this.price = price;
        this.pnum = pnum;
        this.img_path = img_path;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                ", pcolor='" + pcolor + '\'' +
                ", psize='" + psize + '\'' +
                ", price=" + price +
                ", pnum=" + pnum +
                ", img_path='" + img_path + '\'' +
                '}';
    }
}
